public class Test {
	public static void main(String[] args) {
		CPU cpu1 = new CPU();
		CPU cpu2 = new CPU();
    CPU cpu3 = new CPU();
    CPU cpu4 = new CPU();
		cpu1.setSpeed(3100);
		cpu2.setSpeed(2500);
    cpu3.setSpeed(2600);
    cpu4.setSpeed(3200);
		System.out.println("cpu1:"+cpu1.toString());
		System.out.println("cpu2:"+cpu2.toString());
    System.out.println("cpu3:"+cpu3.toString());
    System.out.println("cpu4:"+cpu4.toString());
		System.out.println("cpu1==cpu2:"+cpu1.equals(cpu2));
    HardDisk HDD = new HardDisk();
    HardDisk SSD = new HardDisk();
    HDD.setAmount(1024);
    SSD.setAmount(128);
    System.out.println("HDD:"+HDD.toString());
    System.out.println("SSD:"+SSD.toString());
    System.out.println("HDD==SSD:"+HDD.equals(SSD));
}
}
